<?php
session_start();
header('Cache-control: private'); // IE 6 FIX
error_reporting(0);
date_default_timezone_set('Asia/Singapore');
include_once 'lang/lang_start.php';
include_once('mysql_connect.php');
include_once('functions.php');
//require('excel/Classes/PHPExcel.php'); // found when you download the PHPExcel
include_once('library/excel/reader.php');
include_once('database.php');
$db = new Database();

define ("ROOTURL", (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'] : "http://".$_SERVER['SERVER_NAME']);
define ("INFOEMAIL","tms@tms.com");
define ("NAMEEMAIL","Transport Management System Admin");
//define ("PASSWORD_PENGGUNA_SEMENTARA", strtoupper(Random2(6,1)));
define ("PASSWORD_PENGGUNA_SEMENTARA", "123456");

$qListStat= "SELECT * from lookup_status";
$rListStat = $db->sql_fetch($qListStat);
$_SESSION['STATUS_LIST'] = "";
$statuskey;
					
foreach ($rListStat as $i) {
	$statuskey [$i['code']] = $i['name'];
}
$_SESSION['STATUS_LIST'] = $statuskey;


function getStatus($code){
	$statuskey = $_SESSION['STATUS_LIST'];
	return $statuskey[$code];
}


?>